scale: Allocate left marks next to trough
authorTimm Bäder <mail@baedert.org>
Fri, 9 Aug 2019 08:35:10 +0000 (10:35 +0200)
committerTimm Bäder <mail@baedert.org>
Fri, 9 Aug 2019 12:30:01 +0000 (14:30 +0200)
gtk/gtkscale.c

index 9627d278f579f9c9a6b70b12081eba4761d3c053..eaf5056bb39a58590507ff27c698f4f8be3fa09b 100644 (file)
@@ -594,7 +594,7 @@ gtk_scale_size_allocate (GtkWidget *widget,
                               GTK_ORIENTATION_HORIZONTAL, -1,
                               &marks_width, NULL,
                               NULL, NULL);
-          marks_rect.x = 0;
+          marks_rect.x = range_rect.x - marks_width;
           marks_rect.y = 0;
           marks_rect.width = marks_width;
           marks_rect.height = range_rect.height;